package com.ruoyi.asset.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 资产维修对象 asset_maintain
 *
 * @author yepanpan
 * @date 2024-12-25
 */
@Data
public class AssetMaintain extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    public static final String RESULT_DOING = "0";
    public static final String RESULT_OK = "1";
    public static final String RESULT_FAIL = "2";

    /** 自增长主键ID */
    private Long id;

    /** 工单ID */
    private Long flowId;

    /** 工单号 */
    @Excel(name = "工单号")
    private String flowNum;

    /** 资产ID */
    @Excel(name = "资产分类")
    private String cateName;
    private Long assetId;

    /** 资产编码 */
    @Excel(name = "资产编码")
    private String assetNum;

    /** 维护原由 */
    @Excel(name = "维护原由")
    private String reason;

    /** 负责人 */
    @Excel(name = "负责人")
    private String userName;
    private Long userId;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date finishTime;

    /** 维修费用 */
    @Excel(name = "维修费用")
    private BigDecimal money;

    /** 维修说明 */
    @Excel(name = "维修说明")
    private String comment;

    /** 维修图片 */
    private String imgs;

    /** 维修结果 */
    @Excel(name = "维修结果", dictType = "asset_maintain_result")
    private String result;


}